<?php

namespace app\common\validate;


class ReceiveInValidate extends BaseValidate
{
    protected $rule = [
        'bill_no' => 'require|isNotEmpty',
        'goods_list' => 'require|isNotEmpty',
    ];
    
    protected $message = [
        'bill_no' => '单据编号是必须的且不能为空',
        'goods_list' => '商品信息是必须的且为数组格式'
    ];

    protected $scene = [
        'no_check' => '',
        'detail' => 'bill_no',
        'save' => 'bill_no,goods_list',
        'submit' => 'bill_no,goods_list'
    ];
}
